package EnumTest;

import note.Report;

/**
 * @Description
 * @Author 林泽鸿
 * @Date 2020/9/30 17:58
 */
public class MyClass {
    enum Color
    {
        RED, GREEN, BLUE;
    }

    public static void main(String[] args) {
        Color myVar = Color.BLUE;

        switch(myVar) {
            case RED:
                System.out.println("红色");
                break;
            case GREEN:
                System.out.println("绿色");
                break;
            case BLUE:
                System.out.println("蓝色");
                break;
        }
    }
}